global tempfold = "$BS_fold/local1/" 
global workingnew = "$BS_fold/local1/inputs/"

clear all
use "$workingnew/pre_reg_data_ProdR_new_kl",clear
contract product_name5
gsort  -_freq
rename _freq Frequency
keep if _n < 11

	texsave product_name5 Frequency using "$tables/sample_products.tex", ///
		footnote("Note: the table shows top 10 products based on their frequncy in the decomposition sample.") ///
		title("Top 10 products by frequency") ///
		nofix replace location(h) varlab marker(Table:Products) frag ///
		width(.7\textwidth)
